/**
 * @author: li_chao
 * @date: 2021年08月31日 17:22
 */
package com.yj.cmp.sdk.fusioncompute.network.securitygroup.vo;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class SecurityGroupsListVo {

    @SerializedName("securityGroups")
    private List<SecurityGroupsListDTO> securityGroups;
    @SerializedName("total")
    private Integer total;

    @Data
    public static class SecurityGroupsListDTO {
        @SerializedName("sgId")
        private String sgId;
        @SerializedName("sgName")
        private String sgName;
        @SerializedName("sgDesc")
        private String sgDesc;
        @SerializedName("rules")
        private String rules;
        @SerializedName("vmNum")
        private String vmNum;
        @SerializedName("vmList")
        private List<vmListDTO> vmList;

        @Data
        public static class vmListDTO {
            @SerializedName("vmId")
            private String vmId;
            @SerializedName("vmName")
            private String vmName;
            @SerializedName("vmUrn")
            private String vmUrn;
            @SerializedName("vmUri")
            private String vmUri;
        }
    }
}